/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.iecg.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 用户表
 *
 * @author pigx code generator
 * @date 2019-10-12 16:07:10
 */
@Data
@TableName("iecg_user")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "用户表")
public class IecgUser extends Model<IecgUser> {
private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId
    @ApiModelProperty(value="编号")
    private Long id;
    /**
     * 密码
     */
    @ApiModelProperty(value="密码")
    private String password;
    /**
     * 姓名
     */
    @ApiModelProperty(value="账号")
    private String name;
    /**
     * 年龄
     */
    @ApiModelProperty(value="年龄")
    private Integer age;
	/**
	 * 用户名
	 */
	@ApiModelProperty(value="用户名")
	private String realName;
	/**
	 * 年龄
	 */
	@ApiModelProperty(value="体重")
	private Integer weight;
	/**
	 * 婚否
	 */
	@ApiModelProperty(value="性别")
	private String sex;
    /**
     * 身高
     */
    @ApiModelProperty(value="身高")
    private Integer stature;
    /**
     * 婚否
     */
    @ApiModelProperty(value="婚否 0,1")
    private String maritalstatus;
    /**
     * 血型
     */
    @ApiModelProperty(value="血型")
    private String bloodType;
    /**
     * 区域
     */
    @ApiModelProperty(value="区域")
    private String area;
    /**
     * 记录历时
     */
    @ApiModelProperty(value="记录历时")
    private Long recordTime;
    /**
     * 记录类型
     */
    @ApiModelProperty(value="记录类型")
    private Integer recordType;
    /**
     * 病历号
     */
    @ApiModelProperty(value="病历号")
    private Integer caseNumber;
    /**
     * 住院号/门诊号
     */
    @ApiModelProperty(value="住院号/门诊号")
    private String roomNumber;
    /**
     * 床号
     */
    @ApiModelProperty(value="床号")
    private String bedNumber;
    /**
     * 开始时间
     */
    @ApiModelProperty(value="开始时间")
    private LocalDateTime timeFromStart;
    /**
     * 出生年月
     */
    @ApiModelProperty(value="出生年月")
    private String birthday;
    /**
     * 身份证
     */
    @ApiModelProperty(value="身份证")
    private String identity;
    /**
     * 地址
     */
    @ApiModelProperty(value="地址")
    private String address;
    /**
     * 电话
     */
    @ApiModelProperty(value="电话")
    private String phone;
	/**
	 * openId
	 */
	@ApiModelProperty(value="openId")
	private String openId;
	/**
	 * openId
	 */
	@ApiModelProperty(value="绑定码")
	private String bindCode;
    /**
     * 送诊科室
     */
    @ApiModelProperty(value="送诊科室")
    private String department;
    /**
     * 送诊医生
     */
    @ApiModelProperty(value="送诊医生")
    private String doctor;
    /**
     * 记录仪器型号
     */
    @ApiModelProperty(value="记录仪器型号")
    private String instrumentType;
    /**
     * 数据来源
     */
    @ApiModelProperty(value="数据来源")
    private String datasource;
    /**
     * 是否有报告
     */
    @ApiModelProperty(value="是否有报告")
    private Integer havaReport;
    /**
     * 记录VLP
     */
    @ApiModelProperty(value="记录VLP")
    private Integer isVlpRecord;
    /**
     * 起搏
     */
    @ApiModelProperty(value="起搏")
    private Integer isPacemaking;
    /**
     * 分析
     */
    @ApiModelProperty(value="分析")
    private Integer isAnalysis;
    /**
     * 临床印象
     */
    @ApiModelProperty(value="临床印象")
    private String historyprofiles;
    /**
     * 0-正常，9-锁定
     */
    @ApiModelProperty(value="0-正常，9-锁定")
    private String lockFlag;
    /**
     * 用药情况
     */
    @ApiModelProperty(value="用药情况")
    private String patientDrugs;
    /**
     * 心电结论
     */
    @ApiModelProperty(value="心电结论")
    private String conclusion;
	/**
	 * 心电类型
	 */
	@ApiModelProperty(value="心电类型")
    private String ecgType;
	/**
	 * 最近一次测量
	 */
	@ApiModelProperty(value="最近一次测量")
	private Date lastCheck;
	/**
	 * 设备类型
	 */
	@ApiModelProperty(value="设备类型")
	private String  deviceType;
	/**
	 * 心脏起搏器
	 */
	@ApiModelProperty(value="心脏起搏器")
	private String pacemaker;
    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remark;
	/**
	 * 紧急联系列表
	 */
	@TableField(exist = false)
	private List<IecgUserEmergency> iecgUserEmergencyList;
	/**
	 * 电子病历
	 */
	@TableField(exist = false)
	@ApiModelProperty(value="电子病历")
	private IecgUserDetail iecgUserDetail;
	/**
	 * 手机验证码
	 */
	@TableField(exist = false)
	@ApiModelProperty(value="手机验证码")
	private String code;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 删除标记
     */
    @ApiModelProperty(value="删除标记")
    private String delFlag;

    }
